package com.neu.flashmall.order.service;

import com.github.pagehelper.PageInfo;
import com.neu.flashmall.order.entity.OmsOrder;
import com.neu.flashmall.order.vo.OmsOrderVo;
import com.neu.flashmall.order.vo.OrderVo;

import java.util.List;

public interface OmsOrderService {
    PageInfo<OmsOrderVo> selectAll(Integer pageNum, Integer pageSize);

    String changeConfirm(Long orderId);

    String changeDelete(Long orderId);

    PageInfo<OmsOrderVo> getOrderByStatus(Integer pageNum,Integer pageSize,String statusName);

    String addOrder(OrderVo orderVo);

    OmsOrderVo getOrderById(Long orderId);

    OmsOrder selectByPrimaryKey(Long orderId);
    OmsOrder selectByOrderCode(String orderCode);

    List<OrderVo> getOrderVo(Long userId,Integer pageSize,Integer pageNum,Integer status);

    int changeStatus(Long orderId,Integer status);

    String changeStatus(String orderCode);
    int falseDelete(Long id);

    OrderVo getOrderVo(Long orderId);

    int update(OmsOrder order);
}
